Let's do a little bit of code cleanup and error checking specifically in our session.
Utils under server script service.
Cast ray down for height.
We're casting a ray down to get the height of the terrain, but we could miss the terrain specifically
in the coins because the coins go all the way out to the edge.
We get an edge effect and right here, if we don't get a result, we're going to return.
A nil position will be nil when we got back from here.
And then we'll try and add a vector to it or error.
Then the script is going to bomb.
We can't have that.
All right.
So if there is no result, let's do this else.
Let's return a default value.
I'm going to say return vector three dot new, x, zero and Z, and that should do it.